package bishi;

import java.util.Random;
import java.util.Scanner;
import java.util.Stack;
import java.util.stream.IntStream;

public class Main {
    private static int arr[][];

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入行数：");
        int cols=scanner.nextInt();
        System.out.println("请输入列数：");
        int rows=scanner.nextInt();
        System.out.println();

    }
    public static int test(int[][] arr){
        int rows=arr[0].length;//列长度
        int cols=arr.length;//行长度
        int result=1;
        int temp=1;
        for (int i=0;i<cols-1;i++){
            for (int j=0;j<rows-1;j++){
                if (arr[i][j]==arr[i][j+1] || arr[i][j]==arr[i+1][j]){
                    temp++;
                }
            }
        }
        if (temp>result){
            result=temp;
        }
        return result;
    }
}
